InputPanel for WinForms | ComponentOne
C1.Win.4.5.2 Assembly / C1.Win.Drawing Namespace / StringRendererGDIPlus Class / HighlightSubstring Method / HighlightSubstring(Graphics,Font,StringFormat,Brush,Rectangle,String,Brush,IList<CharacterRange>) Method

In This Topic
    HighlightSubstring(Graphics,Font,StringFormat,Brush,Rectangle,String,Brush,IList<CharacterRange>) Method
    In This Topic
    Syntax
    'Declaration
     
    Public Overloads Shared Sub HighlightSubstring( _
       ByVal graphics As Graphics, _
       ByVal font As Font, _
       ByVal stringFormat As StringFormat, _
       ByVal foreBrush As Brush, _
       ByVal bounds As Rectangle, _
       ByVal text As String, _
       ByVal highlightBrush As Brush, _
       ByVal substringRanges As IList(Of CharacterRange) _
    ) 
    public static void HighlightSubstring( 
       Graphics graphics,
       Font font,
       StringFormat stringFormat,
       Brush foreBrush,
       Rectangle bounds,
       string text,
       Brush highlightBrush,
       IList<CharacterRange> substringRanges
    )

    Parameters

    graphics
    font
    stringFormat
    foreBrush
    bounds
    text
    highlightBrush
    substringRanges
    See Also